package com.dd.cloud.user.entity.consult;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 数据表说明:问诊电子病历表
 *
 * @author Lx
 * @version 1.0
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "问诊电子病历表")
public class ConsultMedicalRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据表说明:问诊电子病历表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 咨询id
     */
    @Column(comment = "咨询id")
    private Integer consultId;

    /**
     * 中医诊断code
     */
    @Column(comment = "中医诊断code", length = 20)
    private String zyCode;

    /**
     * 中医诊断名称
     */
    @Column(comment = "中医诊断名称", length = 50)
    private String zyName;

    /**
     * 辩证诊断
     */
    @Column(comment = "辩证诊断", length = 500)
    private String dialecticalDiagnosis;

    /**
     * 主诉
     */
    @Column(comment = "主诉", length = 500)
    private String chiefComplaint;

    /**
     * 过敏史
     */
    @Column(comment = "过敏史", length = 500)
    private String allergyHistory;

    /**
     * 辅助检查结果
     */
    @Column(comment = "辅助检查结果", length = 1000)
    private String auxiliaryCheck;

    /**
     * 体格检查
     */
    @Column(comment = "体格检查", length = 1000)
    private String physicalCheck;

    /**
     * 处理意见
     */
    @Column(comment = "处理意见", length = 1000)
    private String handleOpinion;

    /**
     * 留言
     */
    @Column(comment = "留言", length = 1000)
    private String remark;

    /**
     * 状态 1正常 -1删除 2未保存
     */
    @Column(comment = "状态 1正常 -1删除 2未保存", length = 4)
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;
}
